Hadoop in the Enterprise: Architecture, 1st Edition by Unknown
Author:Unknown
Language: eng
Format: epub, mobi, pdf
Published: 0101-01-01T00:00:00+00:00
Quorums
During our excursion through Hadoop high availability, we will encounter the
concept of a quorum. When dealing with distributed systems, a common
problem is how to ensure that processes running on different machines agree
on the value of something in the presence of faults and failures, the so-called
problem of consensus. There has been a lot written in the literature about how
to achieve distributed consensus: you may have heard of algorithms such as
Paxos, Raft and ZooKeeper’s very own Zab. We will not go into detail about how these algorithms work here but the enterprise architect should be familiar
with the basics.
Note
If the reader is interested in this topic in detail, the “Distributed Systems”
section of Martin Kleppmann’s Designing Data-Intensive Applications is highly recommended.
In general, in order to achieve consensus in distributed systems and for that
system to support consistency (i.e. everyone is guaranteed to agree on the same
value either immediately or at some point in the future), a majority of machines
in a quorum need to agree on a value using one of the algorithms mentioned
above a the majority of machines needs to be maintained for the system to be
considered consistent.
What this all means in practice is that a quorum should consist of an odd
number of machines and that the maximum number of node failures in a quorum
of n nodes for it to remain operational is
. While
quorums can have even numbers, it would not increase the resiliency: quorums
of both 5 and 6 nodes can tolerate only 2 node failures.
In Hadoop, achieving consensus between master services is key to enabling
consistent writes and reads of metadata and are critical to services such as
ZooKeeper and HDFS HA. As we will see, other services rely on ZooKeeper
and its reliable consensus for distributed locking and configuration storage.
Load Balancing
A key requirement in any high availability setup is the ability to seamlessly and
automatically switch between instances of a service running on different nodes.
This is especially important for services which have no inbuilt mechanism for
providing HA. As clients we want some or all of the following:
To access a service via a single logical endpoint
To ultimately connect to an instance that is running and healthy
To transparently open and maintain sessions with the service
To connect to a node that is not overwhelmed with users
To automatically switch between backend service providers in the event
of failure
Step in load balancing. Load balancers act as a proxy in front of a service and,
depending on the implementation, address one or more of the above
requirements. So what are the different forms of load balancing we can use?
DNS Round Robin
The easiest form of load balancing to achieve is DNS round robin2. When clients connect to a network service they first lookup the IP address from the
DNS server (or its own local definitions) using the service hostname. DNS
servers can be configured to cycle through or return a random entry from a list
of configured IP addresses. The process is illustrated in Figure Figure 3-1:
clients query the DNS server for the IP for a hostname (1), the server response
with one of the list of configured IPs (2) and the client contacts the supplied IP
(3).
Download
Hadoop in the Enterprise: Architecture, 1st Edition by Unknown.mobi
Hadoop in the Enterprise: Architecture, 1st Edition by Unknown.pdf
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Personalized inhaled bacteriophage therapy for treatment of multidrug-resistant Pseudomonas aeruginosa in cystic fibrosis by unknow(175128)
CONSORT 2025 statement: updated guideline for reporting randomized trials by unknow(83518)
Critical evaluation of the ProfiLER-02 study design and outcomes by Vivek Subbiah & Razelle Kurzrock(83203)
Cardiac gene therapy makes a comeback by Oliver J. Müller & Susanne Hille & Anca Kliesow Remes(83052)
Whisky: Malt Whiskies of Scotland (Collins Little Books) by dominic roskrow(74436)
Unveiling the design rules for tunable emission in graphene quantum dots: A high-throughput TDDFT and machine learning perspective by Şener Özönder & Mustafa Coşkun Özdemir & Caner Ünlü(50892)
A yeast-based oral therapeutic delivers immune checkpoint inhibitors to reduce intestinal tumor burden by unknow(40259)
Covalent hitchhikers guide proteins to the nucleus by Alexander F. Russell & Madeline F. Currie & Champak Chatterjee(40215)
Meet the Authors: Christopher R. Mansfield and Emily R. Derbyshire by Christopher R. Mansfield & Emily R. Derbyshire(40094)
Alkaline-earth metals promote propane dehydrogenation with carbon dioxide through geometric effects: Altering the reaction pathway by unknow(32730)
Induced iron vacancies boosting FeOOH loaded on sustainable Fenton-like collagen fiber membrane for efficient removal of emerging contaminants by unknow(32504)
Efficient electric-field-assisted photochemical conversion of methane to n-propanol exclusively over penetrated TiO2Ti hollow fibers by Guanghui Feng(32452)
Bi2SiO5 nanosheets as piezo-photocatalyst for efficient degradation of 2,4-Dichlorophenol by Hangyu Shi & Yifu Li & Lishan Zhang & Guoguan Liu & Qian Zhang & Xuan Ru & Shan Zhong(32384)
A novel NDIPTA organic heterojunction photocatalyst with built-in electric field for efficient hydrogen production by Jiahui Yang & Baojun Ma & Yongfa Zhu(32360)
Enhanced conversion of methane to liquid-phase oxygenates via hollow ferrite nanotube@horseradish peroxidase based photoenzymatic catalysis by Jun Duan & Shiying Fan & Xinyong Li & Shaomin Liu(32331)
Ordered macroporous superstructure of defective carbon adorned with tiny cobalt sulfide for selective electrocatalytic hydrogenation of cinnamaldehyde by Xiao-Shi Yuan & Sheng-Hua Zhou & San-Mei Wang & Wenbo Wei & Xiaofang Li & Xin-Tao Wu & Qi-Long Zhu(32256)
What's Done in Darkness by Kayla Perrin(27145)
Topological analysis of non-conjugated ethylene oxide cored dendrimers decorated with tetraphenylethylene: Insights from degree-based descriptors using the polynomial approach by A Theertha Nair & D Antony Xavier & Annmaria Baby & S Akhila(26522)
Investigation of mechanical and self-healing properties of hydroxyl-terminated polybutadiene functionalized with 2-ureido-4-pyrimidinone by Mohsen Kazazi & Mehran Hayaty & Ali Mousaviazar(26457)